<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>   
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<%@ taglib uri="http://jsptags.com/tags/navigation/pager" prefix="pg"%>
<LINK href="images/css.css" type="text/css" rel="stylesheet">
<style type="text/css">
<!--
.STYLE1 {
	font-size: 12px
}
-->
</style>
<center>
<table class="tableline" id="Table1" cellspacing="1" cellpadding="0" width="100%" border="0">
    <tr>
     <td colspan="6" class="STYLE4" align="center" bgcolor="#ffffff" colspan="2" height="40">团队活动管理列表
     &nbsp;&nbsp;&nbsp;&nbsp;
     </td>
     </tr>
    <tr align="center">
      <td width="5%" height="40" bgcolor="#ffffff">编号</td>
      <td width="20%" bgcolor="#ffffff">主题</td>
      <td width="20%" bgcolor="#ffffff">微缩图</td>
      <td width="20%" bgcolor="#ffffff">修改时间</td>
      <td width="20%" bgcolor="#ffffff">点击次数</td>
      <td bgcolor="#ffffff">操作</td>
    </tr>
<c:if test="${!empty pm.datas}">
<c:forEach items="${pm.datas  }" var="strongNews">
        <tr align="center">
          <td bgcolor="#ffffff">${strongNews.id }</td>
          <td bgcolor="#ffffff"><a href="strongNewsAdmin.do?method=findStrongNewsById&id=${strongNews.id}" >${strongNews.newstopic }</a></td>
          <td bgcolor="#ffffff"><img alt="" width="80" height="60" src="companyPhoto/${strongNews.showphoto }"></td>
          <td bgcolor="#ffffff">${strongNews.updatetime }</td>
          <td bgcolor="#ffffff">${strongNews.total}</td>
          <td bgcolor="#ffffff"><a href="strongNewsAdmin.do?method=toUpdateStrongNews&id=${strongNews.id }">修改</a>&nbsp;&nbsp;<a href="strongNewsAdmin.do?method=delete&id=${strongNews.id }&belong=${strongNews.belong}">删除</a></td>
        </tr>
      </c:forEach>
    </c:if>
  </table>
  <pg:pager url="strongNewsAdmin.do" items="${pm.total }" export="currentPageNumber=pageNumber">
	<pg:first>
		<a href="${pageUrl }&belong=2">首页</a>

	</pg:first>
	<pg:prev>
		<a href="${pageUrl }&belong=2">上一页</a>
	</pg:prev>
	<pg:pages>
		<c:choose>
			<c:when test="${currentPageNumber eq pageNumber}">
				<font color="red">${pageNumber }</font>
			</c:when>
			<c:otherwise>
				<a href="${pageUrl }&belong=2">${pageNumber }</a>
			</c:otherwise>
		</c:choose>
	</pg:pages>
	<pg:next>
		<a href="${pageUrl }&belong=2">下一页</a>
	</pg:next>
	<pg:last>
		<a href="${pageUrl }&belong=2">尾页</a>
	</pg:last>
</pg:pager>
</center>
